using System.Collections;
using System.Collections.Generic;
using Unity.Entities;
using UnityEngine;

namespace LS
{
    public class EntityIdAuthoring : MonoBehaviour
    {
        public int type;
        public int id;

        public class EntityIdBaker : BakerBase<EntityIdAuthoring, EntityIdComponentData>
        {
            public override EntityIdComponentData CreateComponent(EntityIdAuthoring authoring)
            {
                return new EntityIdComponentData()
                {
                    type = authoring.type,
                    id = authoring.id
                };
            }
        }
    }

    public struct EntityIdComponentData : IComponentData
    {
        public int type;
        public int id;
    }
}
